package models

import (
	. "tempSend/pkg/database"
	"tempSend/pkg/util"
)

//小程序配置
type MpInfo struct {
	ID         int `gorm:'id'`
	Name       string
	Appid      string
	Appsecret  string
	TemplateId string
}

//获取小程序配置信息
func GetMpInfo() MpInfo {
	mpid := util.GetMpID()
	mpinfo := MpInfo{}
	Db.Where("id = ?", mpid).First(&mpinfo)
	return mpinfo
}
